package com.zc.study.thread.多线程第七章节.SolveOne;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    public static Date parse(String format,String dateString) throws ParseException {
        return new SimpleDateFormat(format).parse(dateString);

    }
    public static String format(String format,Date date){
        return new SimpleDateFormat(format).format(date).toString();

    }
}
